<?php


namespace App\Services\Api;

use Illuminate\Support\Facades\Redis;

/**
 * AuthService
 * created on 2021/1/19 16:52
 * created by chengzhigang
 */
class AuthService
{

    //获取用户信息
    public static function getUser($token){
        $redis = Redis::connection('auth');
        $userInfo = $redis->get('user_'.$token);
        return json_decode($userInfo,true);
    }
}